<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>信用评估</title>
  <style>
    body {
      font-family: Arial, sans-serif;
      background-color: #f4f4f4;
      margin: 0;
      padding: 0;
    }

    .header {
      background-color: #28a745;
      color: white;
      text-align: center;
      padding: 1em;
    }

    .container {
      padding: 20px;
    }

    .form-container {
      background-color: white;
      padding: 20px;
      border-radius: 5px;
      box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .form-group {
      margin-bottom: 15px;
    }

    .form-group label {
      display: block;
      margin-bottom: 5px;
      font-weight: bold;
    }

    .form-group input,
    .form-group select {
      width: 100%;
      padding: 10px;
      border: 1px solid #ccc;
      border-radius: 5px;
    }

    .button {
      background-color: #28a745;
      color: white;
      border: none;
      padding: 10px 15px;
      border-radius: 5px;
      cursor: pointer;
      text-decoration: none;
    }

    .button:hover {
      background-color: #218838;
    }

    .back-link {
      display: inline-block;
      margin-top: 20px;
      color: #28a745;
      text-decoration: none;
    }

    .back-link:hover {
      text-decoration: underline;
    }
  </style>
</head>
<body>
  <div class="header">
    <h1>信用评估</h1>
  </div>

  <div class="container">
    <div class="form-container">
      <form action="/submit_credit_evaluation" method="POST">
        <div class="form-group">
          <label for="name">姓名:</label>
          <input type="text" id="name" name="name" required>
        </div>
        
        <div class="form-group">
          <label for="id_number">身份证号:</label>
          <input type="text" id="id_number" name="id_number" required>
        </div>
        
        <div class="form-group">
          <label for="email">电子邮箱:</label>
          <input type="email" id="email" name="email" required>
        </div>
        
        <div class="form-group">
          <label for="phone">联系电话:</label>
          <input type="tel" id="phone" name="phone" required>
        </div>
        
        <div class="form-group">
          <label for="income">年收入:</label>
          <input type="number" id="income" name="income" required>
        </div>
        
        <div class="form-group">
          <label for="employment_status">就业状态:</label>
          <select id="employment_status" name="employment_status" required>
            <option value="">请选择</option>
            <option value="employed">在职</option>
            <option value="self_employed">自雇</option>
            <option value="unemployed">失业</option>
            <option value="student">学生</option>
            <option value="retired">退休</option>
          </select>
        </div>
        
        <div class="form-group">
          <label for="credit_history">信用历史:</label>
          <select id="credit_history" name="credit_history" required>
            <option value="">请选择</option>
            <option value="excellent">优秀</option>
            <option value="good">良好</option>
            <option value="fair">一般</option>
            <option value="poor">较差</option>
            <option value="none">无</option>
          </select>
        </div>
        
        <button type="submit" class="button">提交评估</button>
      </form>
      <a href="/finance" class="back-link">返回</a>
    </div>
  </div>
</body>
</html>